﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Nate_sRoguelikeGame
{
    class GameObject
    {
        private MapBlock _location;
        public MapBlock MapBlock
        {
            get { return _location; }
            set {
                if (value == null)
                    return;
                if (_location != null)
                    _location.RemoveObject(this);

                _location = value;
                _location.AddObject(this);
            }
        }

        public char DisplayCharacter { get; set; }
        public ConsoleColor DisplayColor { get; set; }
        public int ZIndex { get; set; }
    }
}
